package racetrack

import com.test.User



class T3 {

	static main(args) {
		def admin = new User(login:"admin", password:"wordpass", role:"admin", isAdmin:true)
		admin.save()
		if(admin.hasErrors()){
			println admin.errors
		}
		
		def jdoe = new User(login:"jdoe", password:"password",role:"user")
		jdoe.save()
		if(jdoe.hasErrors()){
		   println jdoe.errors
		}
	}

}
